import 'package:flutter/material.dart';
import 'package:get/get.dart';

void openHelp() {
  Get.dialog(
    AlertDialog(
      title: const Text(
        '玩法介绍',
        textAlign: TextAlign.center,
        style: TextStyle(
          fontFamily: 'gaoduan',
          fontSize: 30,
          fontWeight: FontWeight.w500,
        ),
      ),
      scrollable: true,
      content: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          const Text(
            '游戏规则',
            style: TextStyle(
              fontFamily: 'gaoduan',
              fontSize: 30,
              fontWeight: FontWeight.w500,
            ),
          ),
          const SizedBox(height: 15),
          const Text(
            '尽可能快的滑动魔方滑块。\n\n最终还原到按数字顺序排列。\n\n但不能移动到炸弹滑块，如果你移动炸弹，游戏失败!',
            style: TextStyle(
                fontFamily: 'gaoduan',
                fontSize: 20,
                fontWeight: FontWeight.w500,
                color: Color.fromARGB(255, 204, 62, 47)),
          ),
          const SizedBox(height: 15),
        ],
      ),
    ),
  );
}
